<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Email行程  - {dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}" />
<meta name="keywords" content="{dede:global.cfg_keywords/}" />
<script type="text/javascript"> 
function copy_to_self() {
	document.getElementById('email_address2').value = document.getElementById('email_address1').value;
	document.getElementById('email_name2').value= document.getElementById('email_name1').value;
}
 
function check(){
	var my_email = document.getElementById('email_address2').value;
	var your_email = document.getElementById('email_address1').value;
	if(your_email == ''){
		alert("请填写收件人邮箱地址。");
		return;
	}
	if( my_email== ''){
		alert("请填写您的邮箱地址。");
		return;
	}
	var  patrn=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
	if  ( !patrn.exec(your_email) )
	{
		alert("邮箱地址格式有误，请检查。");
		return;
	}
	document.getElementById('email_form').submit();
}
</script>
<style type="text/css">
body,td,th {
	font-size: 12px;
}
</style>
</head>
 
<body style="margin:5px;">
 <table border="0" width="96%" style="margin-left:10px">
  <tr>
    <td width="100" valign="top">
      <a href="{dede:global.cfg_basehost/}" target="_blank"><img src="/img/logo.gif" border="0" alt="{dede:global.cfg_webname/}" /></a>
    </td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td height="20" class="p2" colspan="2"></td>
        </tr>
        <tr bgcolor="#e5ecf9">
          <td height="24" align="left"> 
           <b style="padding-left:10px;">Email行程</b>
          </td>
          <td height="24"> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
 	
<form action="sendmail.php" method="post" id="email_form">
   <table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
   <input type="hidden" name="dopost" value="go" />
   <input type="hidden" name="aid" value="<?php echo $aid;?>" />
     <tr>
    <td align="right">收件人邮箱</td>
    <td align="left" style="padding-left:10px;"><input name="email_address1" id="email_address1" type="text" size="30" /> <font color="#FF0000">*</font></td>
  </tr>
  <tr>
    <td width="70" align="right">邮件标题</td>
    <td align="left" style="padding-left:10px;">
    	<input name="title" id="" type="text" size="60" value="来自您朋友的推荐：<?php echo $ww[title];?>"/> <font color="#FF0000">*</font>
    </td>
  </tr>
  <tr>
    <td width="70" align="right">邮件内容</td>
    <td align="left" style="padding-left:10px;">
    <textarea name="txt_content" id="txt_content" style="width:325px; font-size:12px; height:100px;"><?php echo $ww[description];?></textarea>
    </td>
  </tr>
  <tr>
    <td align="right">联系方式</td>
    <td align="left" style="padding-left:10px;">
    	<input name="email_address2" id="email_address2" type="text" size="30" value="{dede:global.cfg_tel/}"/> <!--<font color="#FF0000">*</font>-->
    </td>
  </tr>
  <tr>
    <td align="right">您的姓名</td>
    <td align="left" style="padding-left:10px;">
    	<input name="email_name2" id="email_name2" type="text" size="10" value="{dede:global.cfg_webname/}"/>
    </td>
  </tr>
  <tr>
    <td> </td>
    <td align="left" style="padding-left:10px;">
    	<input style="padding:5px!important; padding:5px 5px 0 5px;" type="button" value="确定" onclick="check();"/>
    </td>
  </tr>
</table>
</form>
<br />
<br />
<div id="ft" style="width:100%; padding-top:10px;"><p>Copyright &copy; 2006-2010, <a href="{dede:global.cfg_basehost/}">{dede:global.cfg_basehost/}</a></p></div>
 

</body>
</html>
